Skip to content

Conversation

@laines-it
Copy link
Collaborator

Fixed tests.
Now, tests follow new Tarantool behavior
(about 'grant' and 'revoke' privileges).

Closes #511

Fixed tests.
Now, tests follow new Tarantool behavior
(about 'grant' and 'revoke' privileges).

Closes #511
@laines-it laines-it force-pushed the laines-it/gh-511-fix-tests-Grant-Revoke-WithoutSu branch from 95f10d1 to b774ce9 Compare December 22, 2025 12:22
Copy link
Collaborator

@oleg-jukovec oleg-jukovec Dec 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests name is:

TestBox_Sugar_Schema_UserGrant_NoSu

and:

TestSchemaUser_Revoke_WithoutSu

But in the updated tests we actually do the su. It is very strange now. I suggest the following:

It will be better to create another user (testsu?) inside testdata/config.lua without grant access and use it for creating a connection in tests TestBox_Sugar_Schema_UserGrant_NoSu/TestBox_Sugar_Schema_UserGrant_Su. In that case you will not need to modify the tests structure.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we better change names

  • TestBox_Sugar_Schema_UserGrant_NoSu -> TestBox_Sugar_Schema_UserGrant_AccessDenied (or TestSchemaUser_Grant_AccessDenied)
  • TestSchemaUser_Revoke_WithoutSu -> TestSchemaUser_Revoke_AccessDenied
  • TestBox_Sugar_Schema_UserGrant_WithSu -> TestBox_Sugar_Schema_UserGrant (or TestSchemaUser_Grant)
  • TestSchemaUser_Revoke_WithSu -> TestSchemaUser_Revoke ?

It will keep config the same, I think it would be too complicated otherwise. Also, we can remove these Su lines, since they are unnecessary in new behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tests: fix tests with Tarantool master

3 participants